<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IFWiki.Models.GamePlace>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Source: '<%= Html.Encode(Model.PlaceName) %>' (from the game '<%= Html.Encode(Model.GameName) %>')</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menu" runat="server">
            <div id="menucontainer">
                <ul id="menu">              
                    <li><%= Html.ActionLink("Main", "Index", "GamePlace", new { name = Model.Name }, null)%></li>
                    <li><a class="current">Source</a></li>                                    
                    <li><%= Html.ActionLink("Talk", "Talk", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
                </ul>
            
            </div>
        </div>
  </asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


            <div id="submenucontainer">
                <ul id="submenu">              
                    <li><a class="current">Source</a></li>                
<%
    if (Request.IsAuthenticated)
    {
%>
                    <li><%= Html.ActionLink("Edit", "Edit", "GamePlace", new { name = Model.Name }, null)%></li>
<%
    }
%>                    
                    <li><%= Html.ActionLink("History", "ListRevisions", "GamePlace", new { name = Model.Name }, null)%></li>

                </ul>
            </div>


    <h2>(Source of) <%= Html.Encode(Model.PlaceName) %> (from the game '<%= Html.Encode(Model.GameName) %>')</h2>
        <p>
            InitPlaceJS: 
            <%= Html.Encode(Model.InitPlaceJS) %>
        </p>
        <p>
            DescriptionMarkdown: 
            <%= Html.Encode(Model.DescriptionMarkdown) %>
        </p>
        <p>
            PlaceItemsJson: 
            <%= Html.Encode(Model.PlaceItemsJson) %>
        </p>
        <p>
            PlaceStyle: 
            <%= Html.Encode(Model.PlaceStyle) %>
        </p>
    
<%
    if (Request.IsAuthenticated)
    {
%>
    <p>
        <%=Html.ActionLink("Edit", "Edit", new { name=Model.Name }) %> 
    </p>
<%
    }
    else
    {
%>  
    <p class="note"><%= Html.ActionLink("Login", "Login", "Account") %>  to allow  edit</p>
<%
    }
%>      
    
    
    
</asp:Content>

